package com.hellord.ArmoryTools 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Matteo Cappelloni
	 */
	public class ArmoryToolsEvent extends Event 
	{
		public static const ITEM_LOADED:String = "as3ArTools_item_loaded";
		public static const ARMORY_ERROR:String = "as3ArTools_armory_connection_error";
		public static const CHAR_LOADED:String = "as3ArTools_character_loaded";
		public static const GUILD_LOADED:String = "as3ArTools_guild_loaded";
		
		public var itemId:uint;
		public var itemName:String;
		public var armorySource:String;
		public var data:XML;
		public var itemObject:Item;
		
		public function ArmoryToolsEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new ArmoryToolsEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ArmoryToolsEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}